package com.CuiChangHe.studentmanager.mapper;

import com.CuiChangHe.studentmanager.dao.UserInfoDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Description :用户信息Mapper
 * @Author :崔昌赫
 * @Date : 2021/11/16
 */

@Mapper
@Repository
public interface UserInfoMapper {
    @Select("SELECT * FROM userinfo WHERE id = ${id}")
    UserInfoDao getUserInfoById(@Param("id") Integer id);
    @Select("SELECT * FROM userinfo WHERE token = '${token}'")
    UserInfoDao getUserInfoByToken(@Param("token")String token);
}
